<%-- 
    Document   : saveadd
    Created on : 5-dec-2009, 11:07:28
    Author     : Thomas Roelens
--%>
<%@page import="be.ugent.medirem.persistence.util.DateFormatter" %>

<jsp:useBean id="prescription" class="be.ugent.medirem.persistence.entity.values.PrescriptionValues" scope="request"/>

<jsp:setProperty name="prescription" property="medicationId"/>
<jsp:setProperty name="prescription" property="frequency"/>
<jsp:setProperty name="prescription" property="dosageIsFixed"/>
<jsp:setProperty name="prescription" property="dosageDosage"/>
<jsp:setProperty name="prescription" property="dosageUnit"/>
<jsp:setProperty name="prescription" property="remarks"/>
<jsp:setProperty name="prescription" property="startTime" value="<%= DateFormatter.convert(request.getParameter(\"startTime\") + ' ' + request.getParameter(\"start_hour\"),\"dd/MM/yyyy HH\") %>" />
<jsp:setProperty name="prescription" property="endTime" value="<%= DateFormatter.convert(request.getParameter(\"endTime\") + ' ' + request.getParameter(\"end_hour\"),\"dd/MM/yyyy HH\") %>" />

<jsp:forward page="/gp/patient/prescription/new" />
